package com.study.convention.exception;

import com.study.convention.errorCode.BaseErrorCode;
import com.study.convention.errorCode.IErrorCode;
import lombok.ToString;

/**
 * @author canace
 * @version 1.0
 * @description 远程调用异常
 * @date 2024/1/22 20:08
 */
@ToString
public class RemoteException extends AbstractException{

    public RemoteException(IErrorCode errorCode) {
        this(null, null, errorCode);
    }

    public RemoteException(String message) {
        this(message, null, BaseErrorCode.REMOTE_ERROR);
    }

    public RemoteException(String message, IErrorCode errorCode) {
        this(message, null, errorCode);
    }
    public RemoteException(String message, Throwable throwable, IErrorCode errorCode) {
        super(message, throwable, errorCode);
    }
}
